﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IoCNamed.Persistence
{
    class WsPersistence : IPersistence
    {
        public void Add(object obj)
        {
            System.Diagnostics.Debug.WriteLine("WsPersistence.Add; Addr={0}; Method={1}; Login={2}; Pass={3}", Addr, Method, Login, Pass);
            // тут мы вызываем метод сервиса
        }

        public string Addr { get; private set; }
        public string Method { get; private set; }
        public string Login { get; private set; }
        public string Pass { get; private set; }

        public WsPersistence(string addr, string method, string login, string pass)
            : base()
        {
            Addr = addr;
            Method = method;
            Login = login;
            Pass = pass;
        }
    }
}
